package com.avu.tp.assign2.question3.lsp.comforms;

/**
 *
 * @author Malotana
 */
public class SpecialAccount extends CurrentAccount {

    private int period;
    private double balance;

    public SpecialAccount(double balance, int period) {
        super(balance, period);
    }

    public boolean openSpecialAccount() {
        super.setBalance(balance);
        return true;
    }

    public boolean closeSpecialAccount() {
        if (super.getBalance() > 0 && super.getPeriod() < 0) {
            return true;
        } else {
            return false;
        }
    }
}
